<template>
  <div class="payfail">
    <cp-nav-bar title="支付结果" />
    <div class="result">
      <img src="@/assets/order/fail.png" alt="" />
      <div class="tit">支付失败</div>
      <div class="desc">很遗憾，您没有付款成功</div>
      <div class="btn" @click="goback">
        返回订单
      </div>
    </div>
  </div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
const goback = () => {
  router.push('/notify')
}
</script>
<style lang="scss" scoped>
.payfail{
  width: 100%;
  min-height: calc(100vh - 50px);
  padding-top: 50px;
  background-color: var(--cp-bg);
  .result{
    width: 340px;
    height: 300px;
    margin: 60px auto;
    border-radius: 8px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    img{
      width: 50px;
      height: 50px;
      margin-top: 30px;
    }
    .tit{
      font-size: 20px;
      margin-top: 20px;
    }
    .desc{
      margin-top: 5px;
      font-size: 12px;
      font-weight: 500;
      line-height: 20px;
      color: rgba(184, 12, 23, 1);
      text-align: center;
    }
    .btn{
      width: 300px;
      height: 42px;
      border: 1px solid #777;
      color: #777;
      text-align: center;
      line-height: 42px;
      border-radius: 98px;
      margin-top: 84px;
    }
  }
}
</style>